import {Component, OnInit} from '@angular/core';

@Component({
  selector: 'app-myc04-ngif',
  templateUrl: './myc04-ngif.component.html',
  styleUrls: ['./myc04-ngif.component.css']
})
export class Myc04NgifComponent implements OnInit {

  age = 17
  hasMore: any = true;

  constructor() {
  }

  ngOnInit(): void {
  }

  zengjia() {
    this.age++
  }

  jianshao() {
    this.age--
  }

  qiehuan() {
    this.hasMore = !this.hasMore
  }
}
